<?php
/**
 * 外部收入路由
 */
$router->group(['prefix' => 'wincome'], function ($router) {
   
    Route::get('list', ['as' => 'list', 'uses' => 'IncomeController@index']); //返回外部收入管理
    Route::any('ajaxIndex', ['as' => 'ajaxIndex', 'uses' => 'IncomeController@ajaxIndex']);//ajax返回外部收入
    Route::get('create', ['as' => 'create', 'uses' => 'IncomeController@create']); //返回添加表单
    Route::post('add', ['as' => 'add', 'uses' => 'IncomeController@add']); //添加内部收入管理 
    
    
    Route::get('show', ['as' => 'list', 'uses' => 'IncomeController@show']); //返回内部收入管理
    Route::any('ajaxShow', ['as' => 'ajaxIndex', 'uses' => 'IncomeController@ajaxShow']);//ajax返回外部收入
    Route::get('wincome', ['as' => 'insert', 'uses' => 'IncomeController@insert']); //返回外部添加表单
    Route::post('wincomeAdd', ['as' => 'wincomeAdd', 'uses' => 'IncomeController@wincomeAdd']); //添加外部收入管理 
    
    
    
    Route::any('all', ['as' => 'all', 'uses' => 'IncomeController@all']);//ajax返回其他收入
    Route::any('ajaxAll', ['as' => 'ajaxAll', 'uses' => 'IncomeController@ajaxAll']);//ajax返回其他收入
    Route::get('other', ['as' => 'insert', 'uses' => 'IncomeController@other']); //返回其他添加表单
    Route::post('otheradd', ['as' => 'otherAdd', 'uses' => 'IncomeController@otherAdd']); //添加其他收入管理 
    
});

